<template>
  <div id="app">
    <router-view></router-view>
  </div>
</template>

<script>
import Cookie from 'js-cookie'
export default {
  name: 'App',
  computed: {
    key () {
      return this.$route.fullPath
    }
  },
  mounted(){
   const token= Cookie.get('x-auth-token')
   if(token){
      this.$store.dispatch('others/setAllStores')   
   }
  }

}
</script>
<style lang="scss">
//默认el ui下拉组件 与 输入框组件长度不一
.size-full {
  width: 100%;
}
#app {
  font-size: 16px;
}
.tabelAomut {
  width: 3rem;
  display: flex;
  div {
    font-size: 14px;
    flex: 1;
    span {
      color: #f40;
    }
  }
}
</style>
